inspector: avoid a warning on destroy
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 May 2014 22:31:11 +0000 (18:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 22 May 2014 22:37:43 +0000 (18:37 -0400)
We are only hiding the window now, so a memory management
error has crept into the destroy path.

gtk/inspector/prop-list.c

index 3ad8befdca85cf0fc96351e00a83b15f2c88f4f5..7eb03751e483ada64ac21d3d351dc3966c27dbd7 100644 (file)
@@ -311,7 +311,8 @@ cleanup_object (GtkInspectorPropList *pl)
   pl->priv->notify_handler_id = 0;
 
   g_hash_table_remove_all (pl->priv->prop_iters);
-  gtk_list_store_clear (pl->priv->model);
+  if (pl->priv->model)
+    gtk_list_store_clear (pl->priv->model);
 }
 
 gboolean